# -*- coding:utf-8 -*-

"""
为什么前后不分离使用resutful风格不好
    1. 由于对单个操作的的时候通常是 更新，删除，查看单个同一条链接


"""

from django.urls import path, re_path

# namespace
from fetch_api.views import GetNodesData

from .views import (
    GetNodesCount,
    GetNodesData,
    GetNodeData,
    GetCountries,
    GetJurisdictions,
    GetDataSource,
)


app_name = 'fetch_api'

urlpatterns = [

    re_path(r'^count[/]?$', GetNodesCount.as_view(), name='get_nodes_count'),
    re_path(r'^nodes[/]?$', GetNodesData.as_view(), name='get_nodes_data'),
    re_path(r'^node[/]?$', GetNodeData.as_view(), name='get_node_data'),
    re_path(r'^countries[/]?$', GetCountries.as_view(), name='get_countries'),
    re_path(r'^jurisdictions[/]?$', GetJurisdictions.as_view(), name='get_jurisdictions'),
    re_path(r'^datasource[/]?$', GetDataSource.as_view(), name='get_data_source'),
]
